package com.auth.manage.base.responce;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class SingleResponce<T> extends BaseResponce {
    private T data;

    public static <E> SingleResponce<E> of(E data){
        SingleResponce singleResponce = new SingleResponce();
        singleResponce.setData(data);
        singleResponce.setSuccess(true);
        return singleResponce;
    }

}
